package me.wangqu.weiyouqu.web.rest.business.service;

import me.wangqu.weiyouqu.web.rest.business.dao.CashAccountDao;
import me.wangqu.weiyouqu.web.rest.business.model.CashAccount;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by arcticfox on 6/27/16.
 */
@Service
public class CashAccountService {

    private final Logger log = LoggerFactory.getLogger(CashAccountService.class);

    @Autowired
    private CashAccountDao cashAccountDao;

    public CashAccount getSelfCashAccount(String login) {
        try {
            return cashAccountDao.getSelfCashAccount(login);
        } catch (Exception e) {
            log.error("查询 CashAccount 失败", e.getMessage());
        }
        return null;
    }
}
